/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package travelmatching;

import java.util.Date;

/**
 *
 * @author Dominik Kopec
 */
public class Contract {

    String passengerName;
    Date sContractDate;
    Date eContractDate;
    String transporterName;
    int contractId;
    double fee;
    String additionalNotes;

    public Contract() {
        passengerName = null;
        sContractDate = null;
        eContractDate = null;
        transporterName = null;
        contractId = 0;
        fee = 0;
        additionalNotes = null;
    }

    public void printContract() {
        System.out.println("This is a binding contract between: " + passengerName + " and " + transporterName
                + ", that binds " + passengerName + "to pay " + passengerName + " the sum of " + fee + " "
                + "for the sharing of his/her car for the time starting " + sContractDate + " to "
                + eContractDate + ".");
    }
}
